package screen;

import images.ComponentLoader;

public class Box extends ObjetoTela {

    private int width, height, tipo;
    public static final int BOX = 0, TEXTO = 1;

    public Box(int x, int y, int w, int h) {
        this(x, y, w, h, BOX);
    }

    public Box(int x, int y, int w, int h, int tipo) {
        super(x, y);
        this.width = w;
        this.height = h;
        this.tipo = tipo;
    }

    @Override
    public void desenhar() {
        ComponentLoader.drawBox(2*tipo + (selected ? 1 : 0), x, y, width, height);
    }
}